'use strict'

//这里面有httpcli是http客户端，
//http2cli是http2协议的客户端
//http2proxy是http2的反向代理中间件
const {httpcli} = require('gohttp')
const wxkey = require('../config/wxkey')

let token_url = 'https://api.weixin.qq.com/cgi-bin/token'
               + `?grant_type=client_credential`
               + `&appid=${wxkey.appid}`
               + `&secret=${wxkey.secret}`

module.exports = function() {
  return httpcli.get(token_url)
}
